From: Nick Hainke Date: Fri, 1 Apr 2022 08:16:56 +0000 (+0200) Subject: naywatch: fix reboot_now X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=65f747a8bcf19e0271e6bbe04c2432f9a93cc406;p=feed%2Frouting.git naywatch: fix reboot_now Naywatch should first try to reboot normally, and if that does not work do a hard reboot. However, the hard reboot was never called. Signed-off-by: Nick Hainke --- diff --git a/naywatch/files/naywatch.sh b/naywatch/files/naywatch.sh index 3627464..78c8dd4 100644 --- a/naywatch/files/naywatch.sh +++ b/naywatch/files/naywatch.sh @@ -81,7 +81,7 @@ no_neighbors() { fi if [ $USE_WATCHDOG -eq 0 ] && [ $NO_NEIGHBORS_COUNT -gt $MIN_KICK ]; then - reboot_now + reboot_now 10 fi }